home *** CD-ROM | disk | FTP | other *** search
- Path: krel.iea.com!usenet
- From: fleckm@comtch.iea.com@iea.com
- Newsgroups: comp.lang.c
- Subject: Multi file projects
- Date: 8 Mar 1996 22:08:09 GMT
- Organization: CompuTech
- Message-ID: <4hqb49$nrm@krel.iea.com>
- Reply-To: fleckm@comtch.iea.com
- NNTP-Posting-Host: cda0-13.iea.com
- X-Newsreader: IBM NewsReader/2 v1.2
-
- I would appreciate guidance on constructing a multi file project. I am using BC++4.5.
- I have a project that is becoming rather large and I would like to break it into
- more managable pieces.
- In my main module, I have include a header file which declares two structs,
- several floats and ints, a few strings and chars and function prototypes for global use.
- I then included the seperate modules. For instance, I have a module called myscan().
- The function prototype is include as myscan.h and the function itself as myscan.c I
- have been able to seperate myscan as a stand alone compilable program. I added it
- as a "node" using the Borland IDE. I include myscan.h in with my main module so
- myscan could be called. But I get a duplicate function defintion error. If I do not
- include myscan.h from main, I get an undefined symbol error.
- So, what is the correct procedure so I can break up my program into
- managable chunks so that they can be seperately compiled and then linked?
- Mike from Coeur d'Alene
-
-
-